Fixed issue with image.get_blocks() missing last block.