ImageScanner now works correctly