Patch for an error caused by reading non existing image
The program was producing this error once the image it tried to read wasn't there:
AttributeError: 'NoneType' object has no attribute 'shape'
It is now going to use a blank image if the image it tries to read doesn't exist.