[bug 889426] Large images displayed in AoA

This should work, but I didn't get AoA to work locally, so I wasn't able to test :(