Implementation of graphics.Spritemap