Add dump util to save lmdb image patches to jpgs.