save images through opencv (commented out)