change scale
separate image writing from polygon generation