refactor sharing image