check if the file is an image via libmagic
0.10.0