add a function to test if an image is blank (all alpha or mask)
if the belnd poly is an empty geometry collection, skip the blend
buffer the bbox before the diff to avoid blending around the edge of an image