fix cacheAsBitmap alpha issue for canvas