Wrote a few lines for the sprite rendering