allow identifier in get_main_image to be a list