readd creating images every 10 frames.