Sprite loading fixed and sprite api partially implemented