Remove use of where method.
Change image_collection and tests to astropy.table
Changes to support switch from atpy to astropy.table