Remove PIL dependency