DNN-3820 - fixed caching and border rounding