Andrina, the pictures you’ve included would only both occur in a three-stage procedure. Here’s a description of that from the Cleveland Clinic:
The first phase consists of removing the colon, leaving the rectum behind, and giving the patient an end ileostomy for approximately six months. (Most patients report feeling considerably better after this surgery.)
The second phase consists of removing the remnant of rectum, creating a J-Pouch, doing an ileal anal anastomosis, with diverting loop ileostomy. The patient will have the diverting loop ileostomy for approximately three months as long as everything has healed. The third phase consists of closing the stoma. This should be a simpler procedure than stage one and two with a shorter duration and faster recovery.
So the J-pouch is fashioned from the final section of intestine that terminates in an end ileostomy in picture #1. It’s detached from the abdominal wall, pulled into the pelvis, formed into a J-pouch, and reattached to the rectal cuff. The loop ostomy is created upstream from there along the length of the intestine.