complete rewritten new version of spritegen

now 100% has retina support, all in 1 sprite img