Removed global dependency on PIL Library