Hi Dick,
Yes, you are right.
I updated the zip attachment with the correction for that.
Height and width variables are defaulted outside of the conditional logic (of camera connection) now and only height is needed in the Camera.Connected loop.
I also updated to account for rectangular pixels in sensors.
John