CenterForOpenScience/pydocx — pull request #100 by kylegibson (2014-10-14 00:15:10+00:00)
Title: Image size not correctly calculated

In `_get_image_size`, we find the first `ext` of the passed-in element in order to calculate the image size. The problem is that the image sizes may be in a `ext` node that is not actually the first one encountered in the tree.

Consider the following XML

```xml

```
`find_first` for `ext` within the scope of `graphic` is going to find `` when the desired node should be ``

As a result, `_get_image_size` returns zero for both dimensions when they are clearly not zero.

This bug is part of a larger issue with our use of the `find_first` helper.