Make sure create_base_images and reprocess_frame get cleaned
Fix uninitialized variable.