Changed database_interface and build_master_images_table to support new schema of master_images table. For ticket #148.