Resolved Image Rotation Logic