It has libraries for most programming languages. You can take your screenshot(s?) and then process them after the testing is done, removing whatever you don’t need.
In my testing we remove the topbar for comparing and then deduping the screenshots. With the topbar the clock is always different so it makes comparisons difficult.
If you want to compare this screenshot with a previous one, you can use Toolium, that implements methods to compare screenshots excluding some elements.
You can get the locator of status bar element and capture the screenshot excluding it: