Image contrast scaling speedups