Zero buffer segfault

Fixes a potential crash when a zero length Image is passed into blend.