Fix image expanding.
Release 2.37.6.
Close #921.