resizing limit and image boundary iteration 1