constrast function modified to use luma instead of lightness and default threshold changed to 43%