plug-ins: Clean up BMP plug-in
Resolves #12200 (closed)
It adds additional error handling to the BMP plug-in's write functions. It also translates certain variable names from German to English, replaces magic numbers with existing constants, and simplifies some formulas. It also moves the header size value to the correct struct to match the specifications.