Because I wanted rapidly try many framing configurations, so instead of bashing my head against Photoshop... I wrote some code.