Fix bug in fetching image on old template.