added extended scriptability and a test script that matches JPEG magic numbers given a file system