Fix for Graphics CacheAsBitmap