Allow options to be empty, some py3k fixes
Remove unused import
Add pillow support