Use javascript
Click in 4 points in a real rectangle in the next figure:
Need html5 canvas m*r*n!
Focal length: