modified for taking focal length from xml