To reproduce:
scaling full
command.As you'll see, the image isn't scaled to the viewport. This is because imv uses the real size of the picture to calculate how much to scale instead of applying the rotation first. Rotating clockwise again after trying to scale makes it clearer.