fix image viewer

replaced os.popen by subprocess.Popen; platform specific commands