remove shifting on greyscale images