[samples/training/bitmapfun] fixed addBitmapToCache function in the "ImageCache" class. Had the problem, that my cached images got overwritten.