result image respects max dimensions