fixed pivot bug in rectangle sprite