takes an NSImage instead of bitmap rep