On the solvability of finite IM-groups