locseldlg: resize image to fit the bitmapbutton