Fixed broken uploading example code

it used options.image to set the path to the image, while options.file is correct usage of the library, otherwise the example code fails.