Added function: get_image_data and get_distance