Made changes to sprite rendering