fix populate function to ignore missing image directory