Selectively rotating an object in an image