Learning Visual and Textual Representations for Multimodal Matching and Classification