smallsidediff = xsize-smallside-60
if FieldArea < 1 && FieldArea > 0.25
	xstart = xstart+round(xsize/4);
	xend = xend-round(xsize/4);
	ystart = ystart+round(ysize/4);
	yend = yend-round(ysize/4);
elseif FieldArea < 0.25
	xstart = xstart+round(xsize/3);
	xend = xend-round(xsize/3);
	ystart = ystart+round(ysize/3);
	yend = yend-round(ysize/3);
elseif FieldArea > 1 && FieldArea < 10
	xstart = xstart+round(xsize/5);
	xend = xend-round(xsize/5);
	ystart = ystart+round(ysize/5);
	yend = yend-round(ysize/5);
elseif FieldArea > 10 && FieldArea < 100
	xstart = xstart+round(xsize/10);
	xend = xend-round(xsize/10);
	ystart = ystart+round(ysize/10);
	yend = yend-round(ysize/10);
else
	xstart = xstart+round(xsize/10);
	xend = xend-round(xsize/10);
	ystart = ystart+round(ysize/10);
	yend = yend-round(ysize/10);
