Simplify NSImageRep-checking logic to use Bundle.
#1217
Merged
NSImageRep-checking logic to use Bundle.
#1217