Small fixes to SPXImageCache