Fix imageMagick problem

Overwriting gm with return from subClass fixes the imageMagick not found errors, when imageMagick is actually installed.