implemented imageviewer(not finished), did some tweaks.