rename attachment to image
remove deleted file