Foreground Algo: converting avi to mp4 and deleting avi and images folder