Extract an Insets class and use it in Background