def get_spots_masks(mask):
    """
    takes boolean mask and
    """
    from skimage import measure
    from numpy import where, zeros_like, bool
    blobs = measure.label(mask == 1)
    spots = []
    temp_mask = zeros_like(mask, dtype=bool)
    for blob_number in range(1, blobs.max() + 1):
        these_pixels = where(blobs == blob_number)
        if len(these_pixels[0]) < 1000:
            temp_mask[these_pixels] = True
            spots.append(temp_mask)
    return spots
