update pixel resolution