locseldlg: check imagename len