add pattern of image