fixed wrap bug in scaleBilinear
rearranged menu items