scalar_invert_image: subtract from 255 instead of 0 to match vector version