background sync and images on localStorage