progressing on file_writer. one error left: opencv gives error when you try to write png, jpg. there should be some conversion or encoding kind of thing. we will discover this later.