Add autodetection of resolution type if it is nil