update pixel location