edit images and html attributes