Small fix on image rotation.