Set correct file extension for downloaded images if not exists.