Give a filename, this class will auto-detect an image type(currently BMP, GIF and JPG) and get its width and height.