def create_particle(frame, image_dist_history): particle = FrameParticle(frame) particle.image_dist_history = image_dist_history return particle