Function that will initialize the pattern instance.
ID of the Gallery that will be initialized.
the Gallery instance
Function that will initialize the pattern instance.