fixed issue with images not saving to the local storage.