changing output of image format to match image magick