     photo = @puzzle.puzzle_view.photo
     @photo_clip_context.drawImage(photo,xx,yy,@hex_box.width,@hex_box.height,0,0,@hex_box.width,@hex_box.height)
 
-    @mask = new MissingPiecesMask(@puzzle, @puzzle.grid)
+    console.log "CALL reset_mask() from cut_piece_from_photo"
+    @puzzle.mask.reset_mask(@puzzle.grid)
+    # @mask = new MissingPiecesMask(@puzzle, @puzzle.grid)
     # pm_img = document.getElementById("piece-mask")
     context = @pattern.img.getContext('2d')
     context.globalCompositeOperation = 'source-atop'



  next_piece: () ->
    @puzzle.mask.reset_mask()
    @puzzle.indicator.decrement()
    pc = Math.floor(@pieces_in_puzzle*Math.random())
    @sym = @unset_pieces[pc]

    @colors = new ColorRotation
    @indicator = new Indicator(this)
    @grid_model = new PuzzleGridModel(this)
    @mask = new MissingPiecesMask(this)
    get_puzzle_pattern(this)


