Fix inverted spritesheet for retina displays

Many thanks to @tonybaroneee for finding and helping to diagnose this
bug