I'm currently in the process of shooting picture frames for a website and I need a little bit of advice as this isn't a standard product shoot. The way the pictures will be used is that users of the website will be able to pick a frame and a mount and put them together so they can choose exactly what they went.
Therefore the perspective of each picture needs to be exact which is where I am struggling as although the shots look straight there is actually a little bit of convergence of the verticals, usually only a few degrees but possibly enough to cause a problem when they go online. I guess what I'm talking about is lens distortion because obviously if I shot these with a 10mm lens then there would be quite severe distortion.
What I'm wondering is if there is a formula that takes into account things such as focal length, distance + anything else relevent which would give me the optimum focal lengh and distance to get rid of the convergence. I appreciate that perhaps the only way to do this would be to shoot with a 5x4 but that's not an option available so I'm hoping a better understanding of the maths and physics involved might be able to help.
Also is it possible that my camera simply isn't level enough with the subject so although it looks level it is infact perhaps pointing up a few degrees? I suspect that the solution is a combination of both but any advice would be greatly appreciated even if the only advice is to stop looking so hard at the final image as a few degrees difference is the best I'm going to get.

