update sharebox component to save images