Changed to use pixelsWide and pixelsHigh methods on NSBitmapImageRep as size doesn't return display size
Drop down into CGContextXXXX methods do draw transparent alpha rect as NSColor alpha doesn't work on headless display