This script converts images to greyscale, sets them to a specific mean luminance and changes the background color.