removing useless reference images
Fixing nan intersections