Fixed my_gallery routines to query images in links to avoid load event issues