Moved correct_perspective to a common module