Cleaned up export_uv_masks.py code, it is ready for releasing