Fixed issue with PIL and thumbnails in mac