Sprite creation problems