image save and view working.  Many bugs but good enough for now.