resize scanner