Add gm dependency

Add dependency on GraphicsMagick.