Add a utility function to generate image filenames
Replace spaces in image filenames