Delete useless images and adjust the width of the share dialog box