ENH: Factor out RFImageDock, RFViewerLogic.