Extracted image reading functionality from paolMat into ImageScanner objects