Fix for different extension in path and imgData (jpg and jpeg)