refactor graphicsmagick converter