Added pivotX and pivotY properties to sprites to set the rotation point