p3lib image fix for spaces in filenames