remove dependency on python image library