Generalized the process that finds background image resources in a Box hierarchy.