New changes in uploading picture + handling offline state