The us foreign policy illustrated in this cartoon was indeed to

Deter Spain from inciting revolution in former us colonies
Prevent further European colonization in the western hemisphere

Promote the Monroe Doctrine, which declared that the United States would not tolerate European interference in the Americas.