Improve status bar clipping function during taking screenshot