Optimised BitmapData.copy and refactoring continues.