fixes for luminance images.