Bug 865929 - Add pref to limit the size of the canvas image cache r=jlebar,r=jdm, a=tef+