fix cacheAsBitmap alpha issue #1116

fix old issue #1116 / #1009