Convert spaces to underscores for images in directory.