blue peter: a blue flag with a white square in the center indicates that the vessel is ready to sail
code flag: one of an international code of flag signals used between ships
middle distance: the part of a scene between the foreground and the background