Don't use PIL to validate images
This should fix the rtd build