Depth of field calculation library