Fixed bug for systems without PIL installed