Add missing extensions to image names.