In the spirit of bug fixes before features, in the origami cube program:-
rotate(im0,im5,3);
should be changed to:-
rotate(im0,im5,1);
This does not affect designs with two-way rotational symmetry. Nor does it adverely affect designs which have similar colors in opposite corners.