This function takes a local image path and returns a formatted list expected by the JSON request

local_image(image_path)

Arguments

image_path

character; path to the image

Value

list; list containing the embedded image and required extra parameters needed for the JSON request