fixed addAttachment imagesize