Added logging lines to ImageAttachment.