Picture does not support File,
you can use quickrt.exe to reproduce this:
► ui = require "ui"
► f = sys.File('test')
► type(f)
"File"
► win = ui.Window("Picture.constructor() sample", 340, 180)
► type(win)
"Window"
► p = ui.Picture(win, f)
>>> in method 'Picture.constructor' (string expected, got File)
►
obviously Picture does not support File, only string is expected
but the document says that:
[Login to see the link]
image: A File object or a filename string, representing the image to be loaded.
so either the doc is incorrect or the code is incorrect