Fix BMP writing, add ICO reading, and remove unsupported formats.