combined get_image() and get_base_case()
combined get_image() and get_base_case()