separating the attachment image from the attachment links