validate image selection