Add drawSprite functionality