modify images and fix html