Fixing bug in BMP color determination. Adding in a easy way to access res files.