fixing an issue on image paths with spaces in them

If the paths have spaces in them I was getting an error when trying to view a list of products. I forgot that I fixed this awhile back and just updated to stable today. Submitting this so i don't come across this again.