Docx tests: Added media test comparison function.

Also tell pandoc.cabal that we'll be needing base64, since we want to
compare strings here.
Docx tests: Add test image.

This is the cow image extracted from `docx.image.docx`.
Docx test: Test image from media bag.
Merge pull request #1470 from jkr/metadata-test

Media test