save pattern to image with ENTER