Final version: uploads image and displays it