OS X image loading regression fix