Fix BMP saving