Adding custom logic for ignoring images