fixed problems with images on os x