implemented panning, however, image would be black and only the first screen would pan.