Changed PIL import syntax

Fixed bug with some PIL / pillow installations