fixed various graphics functions for Mirror Magic game engine