Switch clipping mask pixel update to function call since pixels is read-only