Model: added Bitmap cache to pass bitmaps by hashcode

I am not sure this is a completely ligit way to go,
but it seems to be faster than the old one and more
importantly we do not get the TransactionTooLargeException
anymore.