removes spaces from image names