initialise Sprite and DotSprite classes