Preprocess received images w/image magick, try contrast stretch http://www.imagemagick.org/Usage/color_mods/#contrast-stretch