When sending an image as an attachment, the message you type into the chat box becomes its caption. However, it's not clear when in the chat box itself, which confusingly says you're typing a message.