Topological Sort Using Decrease Image Resolution