fixed some bugs, starting script to check PSFs of images