[DF-2740] small refactoring mipmaps generation by review comments