Update imgtext.py

Removed pypdf import