Some changes, getCorners working but not well