uploading a local image to detect working