edited the large image imagemagick convert function