Rename above and left offset variables. These variable names were legacy from a previous version of this function and in the current version they were confusingly backwards. Change-Id: I4f6c1628f296fd5b650fd9c5e2d56d7daf66a3f6