added regex for detecting img tags and resize them