Working out source image selection.