Removed PIL imports, caught StopIteration in lotus