Many improvements in BAM converter

- added proper palette support
- added post-processing filter system
- lots of bugfixes and minor improvements