XMLRunFactory: Mark GetImageFromElement as static

Doesn't use anything that relies on class state.