Draft: Simplify gathering data for commonswiki_file
requested to merge cparle/platform-airflow-dags:T296814-image-suggestions-simplified into T296814-image-suggestions
Took filtering of images out of gathering data for commonswiki_file, and did some other simplifications that this made possible.