Moved draw function from sprite to renderengine