added colorkey to bmp sprites updates error checks