add test cases
complete main functionailities of typo-image