Update and optimise all images.