working on sprite rendering