added configurability to SDImageCache