added extended scriptability and a test script that matches JPEG magic n...

...umbers given a file system