removed free of chisq - was crashing on Linux.
added primitive python script for reading .img files