negative transformation in image processing python