Save the last batch data in convert_imageset

@mianba120 pointed out that the last batch was not written. See #59.