fixed image sharing bug