adds img tag for urls ended w/ jpeg/gif/png