Fixed bugs about sharing images