Filtering can be done on a mime type basis. E.g., Pluckeye can block all images from https://www.google.com/ , but still allow text.