fixing image extension issue
Fixed the issue with extension