Issue #2367191: make local exists check use local operations for minor speed and make sure non-existant local images aren't processed