LPS-46168 Rollback 75dee1c1b7def4af885e094edddc6b760bd0d2d0 because it creates some issues when generating thumbnail previews