Adding configuration item to set what valid characters are for the image
filename.
Use the new config item for checking valid filename characters.