Made the ImageOpts a part of the global module to avoid OutOfMemoryErrors
Fixed a bug that was causing messages to not be sent
General bug fixes for the logging within the application