catch deprecated Image library import method

should work for both python-pillow and python-imaging