add support for refresh from local storage. Add support for opening image in new window.