Added bmp file cheks for 16bit function