Fixed a rounding error that can create artefacts for two step stretch images