if smallestx == None or smallestx > smallx:
	smallestx = smallx

if smallesty == None or smallesty > smally:
	smallesty = smally				

if largestx == None or largestx < smallx + smallw:
	largestx = smallx + smallw

if largesty == None or largesty < smally + smallh:
	largesty = smally + smallh