fixed pivot calculation for rotated sprites