Fix moving the image ramp in case of 16-bit images