imageviewer tmp implementation