Nitpick:
That wasn't a prevailing stereotype back then so dismissing it as simple racism reduces the historical insight that can be gleaned. The idle black man stereotype comes from the 1960s and later and originates in the US. Prior to that they would be stereotyped the latin Americans are typically stereotyped today, hard working but low class laborers, so the commentary from the period that was added to the photo actually raises the question why these dock workers were being considered leisurely.
Now I'm wondering why they wrote that...