BMP file handler example