Added dependent destroy to attachements and images