Small cleanup in imager#build_image