added option to ignore img tag