changing file ext and image tags