Twenty Thirteen: show portrait images correctly in gallery post formats. Props obenland, fixes #23649.

git-svn-id: https://core.svn.wordpress.org/trunk@23652 1a063a9b-81f0-0310-95a4-ce76da25c4cd