implemented get_image_names API.