image mode saves to localstorage