feature #1977: Fix minor bugs in one_im_sh and VIDriver