Cardboard shipping boxes can be repurposed ... as your cardboard rectangle. Using your ruler as a guide, poke evenly spaced holes into the foam to make your fabric easy to staple to it.