Moved Sprite rendering (test function) code to Mesh