display charset only when html page crawled
fix when the resource request is set in the resource event
handle parsing images