update with a bug, getImgData