gallery-modal-setup.php : bsg_get_image_ids() instead of get_posts