update example & add option support for cv.Image