Remove dependency on PIL and fail gracefully with a warning if not available