How are you invoking this function? The function is expecting you to pass a file name in. You cannot start this function by pressing F5: you need to start it at the command line or call it from another routine. For example, at the command line,
importfile('C:/TEMP/cameraman.tif');