Inversion and contrast manipulation with canvas