Centers a rect within anoter rect