Shaping cups into phagosomes and macropinosomes