Safer from blob

Checks for the image being nil after the read, returns corrupt error if so.