Use screen.root_depth instead of hardcoded value