Changed it so Cache is a string array, rather than an image. An image object is only generate when the slice is requested to be displayed