Script to fit WCS in fits images