fixed segfault from computing total of psf image for normalizing