added functionality to find brightest frame in a set