updated patterns to cover img and src attrs