Handle spaces in image file names.