Added NSBitmapImageRep+PNG8Bit category
Tidy up a bit
Add define for ERRLog