More sprite rendering fixes