Fix failure to initialize (and garbage results) on the first image
Fix failure to initialize (and garbage results) on the first image

cmusatyalab/imagejfind,cmusatyalab/imagejfind,cmusatyalab/imagejfind,cmusatyalab/imagejfind