fixed fitswrap

fixed fitswrap
fix flat export spots

fix flat export spots