Separating NSImageView from UIImageView

Duplicating code from UIImageView to NSImageView. Macro solution is not
friend with appledocs.