Sets the MAXBLOCK size to the image size when an image fails to save the...

... first time.

Without this fix, PIL will throw ``IOError: encoder error -2 when writing image file`` because the MAXBLOCK size is too small.