Better img tag matching