rotate_xy function

Rotate image by an arbitrary angle, around a center point.