Log current subject and set
Refactor state out of image viewer components