added default for when downloaded image is missing file extension