change format to be imagemagick-friendly