Add function check for hybrid_get_gallery_image_count.