Fixing file-type util lib
Adding test for file-typ
Using file-type lib for image file detection in client and server side