Fixed issue with raw variable not always initialized (image cache regression)