It is odd that you are using parent/child images instead of siblings as that would look more natural to me, but either way, here goes the relevant code from the color animation example that would be easy to adjust to your weird image parent/child code if you do not wish to change that to siblings:
...
// the sun, moon, and stars
Item {
width: parent.width; height: 2 * parent.height
NumberAnimation on rotation { from: 0; to: 360; duration: 10000; loops: Animation.Infinite }
Image {
source: "images/sun.png"; y: 10; anchors.horizontalCenter: parent.horizontalCenter
rotation: -3 * parent.rotation
}
Image {
source: "images/moon.png"; y: parent.height - 74; anchors.horizontalCenter: parent.horizontalCenter
rotation: -parent.rotation
}
...
As you can see, the images are siblings, and their animation is based on the animation of the parent. This way, both images will have the same animation effect as you wish.