Updated 'import Image' directives to use the pillow-friendly 'from PIL import Image' form
Implemented setting of scan resolution for the TWAIN backend