bug corrected when attachement name is not "image"