wfIsBadImage is unused and could be hard deprecated.
https://codesearch.wmflabs.org/search/?q=wfIsBadImage&i=fosho&files=&repos=
outstanding patch sets for remove deprecated code:
https://gerrit.wikimedia.org/r/#/q/topic:badfilelookup+(status:open+OR+status:merged)