big changes ! new naming write_videofile. added gallery.