This is a black and white animated gif from the 1926 Classic Comedy film, The General, of Johnny Gray (Buster Keaton) using one railroad tie to remove another while riding the cowcatcher.

from the 1926 film,
The General