Fix to compress images that have paths that contain spaces. Thanks to Andy Steinberg for the report.