Just look at the first few bytes. This stuff is stored in EVERY file. The filename with the extension is just for stupid Windoze so it can tell what kind of file it is. All other operating systems use this header, so they don't actually need this extension, as you can see here: http://crono.co.uk/stuff/file.png