Fixes the bug of largest image display.