fix read pref
updates to styles and image viewer