updated size and border of image