the enum already has all those info.
logElementTree needs to rotate the screenshot in the correct position too.