Added integration function in myimage, auto-save and read of
ascii detector file upon application close and open