Cut the inside of the body cap with a drill and a round saw. Be careful not to damage the tabs that fit inside the camera or else the adapter will not hold in place. Cut just where the inner circle finishes (see picture).
After cutting, glue the cut cap to the other side of the pipe with the tabs facing outwards. Glue like you did with the foam.