Implemented BitmapPaint callback.