Diabelli’s Theme

You are shown a photograph that has been divided into 24 rectangular pieces. The pieces have been shuffled. Your task is to rearrange the pieces to display the original photograph. To help you with this, there’s a tune — Diabelli’s theme. The tune, too, is divided into 24 pieces! Each piece of the tune is attached to the corresponding piece of the photograph. Thus, when the pieces of the photograph are rearranged in their correct order, the tune will play correctly. When you tap a piece of the photograph, the corresponding piece of the tune is played. You can use the piece of the tune as a hint to tell you where that piece of the photograph needs to go!