First working version of introducing the image in the pattern