workaround for bug #9246 (doesn't cover all cases, but works for me)
real fix would be to save aspect ratio in iop params, not auto-detect it