Added simple screenshot function.
Better handling of rays with components equal to zero while intersecting with a cuboid.