first attempt to integrate astropy into image