Simulating Shape Changes during Electrodeposition