Continued work on refactoring 'analyzeDZImages.py

Added more methods to ‘analyzeDZImages_Refactor.py’ and also added
accompanying unit tests.