creating rotated image on XY axis.