optimize scroll code

use copyPixels() instead of getVector()