Which is the correct triangle to draw to derive the force component along a rope? [duplicate]

Which is the correct triangle to draw to derive the force component along a rope? [duplicate]

When solving for the force component ($F$) in the direction of the string, the following triangle is drawn.

(Adapted from Source)

Giving $F=mg * cos θ$

Why is it drawn that way, and not like this?...