Add centered rendering of sprites.

Now a picture can be rendered using the position as the center of the picture rendering.