added getGalleryImage function to JSObject