Added missing implementation of get_window_extent for AxisImage and test (fixes #2980).