Move image viewer to qmap.utils
Close image viewer on click