edit ave bg function
append just bgImages to the begining of videos
before each play add 50 frames of extracted background for traing purpose