Find and replace the urls by the file urls in DB, in the theme files and layout.html file. Save a copy of those files under "file_orig".