clean up img html code