Updated version of build_master_images_table.py with dostrings and tests. For Ticket #103.