rename files and fix images path