add width and height retrieval to camera driver