tweak the image to reduce jpeg artefacts in the thumbnail