Correct a few memory leaks & uninitialized variables.
Fix bug where trying to save an image when no image is selected causes a crash.
Correct Edit menu "Remove Formatting" text.
Modify so each thread has a separate DB connection.