renaming image and modifying html