using imageMagick as subclass in gm module