Fix image expansion