Helper method for drawing rotated images