init image viewer