refactoring gmagick.composite