Update: improved performance of ndviCell.R.