Transpose rows:
Transpose columns:
Transpose quadrants:

Here are the original pictures, lest you forget

You see above two pictures, each consisting of 16 tiles grouped in 4 rows and 4 columns. Clicking on icons below the pictures, you can transpose rows, columns and quadrants of both pictures, and these changes will affect both pictures synchronously. (For example, you can swap the first column with the second column in both pictures, or the first row with the second row in both pictures, or the North-West quadrant with the South-West quadrant in both pictures.) Sometimes you press on a transposition icon and one of the pictures does not change, and then you will think that the icon does not work — this is a wrong impression, the tiles you indicated have been transposed, yet the pattern on them is the same, the transposition has made no change in the picture.

Using the transposition icons, you can create many beautiful patterns.

When you feel confident with using the transposition icons, press shuffle once or several times. When you press shuffle, several transpositions of the rows, the columns and the quadrants of both pictures are applied randomly to both pictures (so the effect is the same as if someone randomly presses the transposition icons several times). Your task is to return the pictures to their original form. You will soon discover that this puzzle is very difficult! As an easier task, return only one of the two pictures to its original form.

The code on this page is mine (Alexei Vernitski), yet the puzzle is not. I have seen it on Steven Cullinane's site.