Removed PIL dependency