Support bitmaps and resources in DataCard fields

For avatar image and content source image, support setting these fields
with a Bitmap or resource id instead of specifying a URI. Add logic for
caching these images and cleaning up the cache.

Change-Id: I109a2db0fcdf93b5f0d76373bb2b308802a0268a