Better focal length calculation #278