replace html image tags with proper resource url