fix bug when showing insert-image-modal