Debugged MongoConnection image routines.