can now pan and zoom in preview window, added automatic detection of best KLD settings