Remove unused functions and add more test coverage

why define corrected_image = deque(), but return is as a list in the end. Probably we can define it as list at the beginning.