Added functionality to change the rotation origin of a sprite.
Also changed implementation of OpenGL to rotate sprites to make it easier to implement rotating around the origin.