current cosmic detection is too strong use astropy ccdproc? https://ccdproc.readthedocs.io/en/latest/reduction_toolbox.html#clean-image