More fixes

 - check for an empty shapeName, not just a NULL one twice
 - fix "&s" in printf
 - fix potential memory leak
 - GFXCopyPixels wasn't checking the height properly which could result in some memory corruption unpleasantness