Added BMP encoder