ImageMagick converts to png but the image is broken.