mapImage() tweak for ends of colorscale (issue 343)