Reading bmp file without library