There is a situation where the imag2d.pdl in PDL-2.4.6 would get stuck
in the twiddle() loop if you close all existing image windows with the
window manager/OS close widget (the X in the corner) before Q-ing from
the twiddle loop. This version from the latest git has a fix to exit
twiddle if the last image window is closed.