# coding: utf-8
import ui
import appex
import Image
v = ui.load_view()
img = appex.get_image()
if img:
v["image"].image = ui.Image(str(img)) #Error occurs here, it says IOError couldn't display image or something like that
v.present('sheet')
if not img:
v.close()
How do I correct it? Please help!