Remove spaces from string used for image filename.