Refactor getGuiBackground