fix upload_image() image open

fix upload_image(): open(path) to open(path,'rb')