insert image not working in KDE neon plasma 5.9

I’m working on KDE neon plasma 5.9 and whenever I try to insert a jpg image file in all the applications (not just the writer) it shows an error message that the file is not recognizable.