So, I had a wordpress site, which was in site.com/dev
and now I moved to the root site.com
and changed the siteurl, but the images are still pointing to site.com/dev
any solution to change this?
Wordpress embeds full/absolute urls in everything it saves to the database. Moving the database to a different domain/path structure will break all those links. Read this page on how to fix it