I used to do this in a different way.
Had a larger piece of black cardboard than the image itself, then after exposing the picture I just exposed one side at a time.
That allowed me to make not only rectangle masks but also "odd" sides which looked cool.