Update BitmapData.js

refactor method copyChannel to improve the performance