Tests that the source rect is clipped when outside the image rect.