Shape deformation and viscosity in deeply-inelastic heavy-ion collisions