changing img tags to image_tag and updating file ext