Adobe Illustrator. You can create the shapes you require, import the pic, place the shape over the pic, select both of the items and then make a clipping path, which will basically crop off the image around the shape leaving only the pic in the shape of a rectangle