Delete unneeded images, clean up temp properties and serialization, and improve layout for error messages