Minor fix oldImagesBackCompat, vars can be undefined