Offline mode fixed. Clean up tons of code. Image delete buttons working. Image rescaling fixed.