I've given up on putting foam in cameras. For things like mirror buffers I use black felt, and in the narrow channels for the back and other places I use black wool.