Straighten the outside edge of the frame with a spirit level and measure the distance between the two sides. This gives you the width of your end pieces for the frame. Use this measurement to cut top and bottom plates for both ends. Then cut three vertical studs for each end, using the same length you used for the previous studs. To assemble each end, nail three studs between a top and bottom plate.