Encode url images in page