finished boilerplate, enhanced tooltip on contrast stretch