Added functionality for analyse black frames and cut them