fix exception when options.image_path == NULL