Fix image expanding.