added FITSIO_BASE option; updated for poly.c
removed debug line
fixed masksize index