renaming images and updating posts