images are saved in localstorage