the association of pickpockets with train stations became so notorious that when william frith painted one of the most famous pictures of his generation , `` the railway station , '' in 1862 , the chief focus of the composition was two detectives pinching a thief .