if imageextension is blank, don't add it to the layer details.