modified the qt image viewer