Fix image example rotation and resizing.