Pinocytosis and locomotion of amoebae