Check wheather a image file or not using imghdr