Fix for svg fonts. Fixes #60

This should fix issue #60. Now the file content is also used to determine the file type images and fonts.
Implemented a way which should do the trick.

@mkempe
Can you please check the new implementation?