Fix: close a picture in picture_gallery_gadget