replacing and removing unused imgs, updating mail