adding constant to images, then subtracting at end, to prevent pixels from being truly black (div by zero)