Improved Transparent Panel algorithm