Fix for instances with old GraphicsMagick or ImageMagick versions (no -auto-orient).