added image tag processing