added frames.  updated image viewing code