sparse_disp: Fix for small images