merged functions for retina sprites generation, naming improvement.