Take into account completely masked images when calculating scales. Fix small but when filt != args.filter to take into account args.filter == ''