fun Drawable.toBitmap(resources: Resources): Bitmap
Get Bitmap from receiver. Caution: This method isn't tested with vector drawable.
Receiver Drawable to convert to Bitmap