more fixes for epoch and filter cutting. refvisit now uses deepest visit by default for wcs reference image