Fixed bug where could not submit images with spaces in them