Implemented basic BMP decoding for ICO.

This is still not complete.
Writing the resulting BMP files will result in a slightly off file.
The file has a black bar on top.
PNG support still needs to be added.