add testcase for scanned images