Added delete_by_luminance utility.