Update and remove unnecessary images.