Generates HTML code for image url