static bool pngFileValid(Ref ref) { ret ref.has() && ref->hasImage(); }