Fix drawing the image texture when rotated