change image names and code to remove spaces