Update the way img tag is created.