@rexboy7 you wrote:

> since sensorAngle also represents the "direction of preview"

That helps a lot.  Is that documented anywhere?  If so, please link to the documentation in a comment in this code.  If not, please document sensorAngle here where you use it and explain that it is linked in this way to the preview sizes.