Remove unnecessary print
Use histogram and a fit to distinguish stars from sky, mask stars