 
 
   construct_piece: (sym) ->
+    console.log "PuzzlePiece construct_piece() sym = #{sym}"
     @sym = sym
     @hexes = @get_hexes()
     @hex_box.set_hex_box(sym)



  set_hex_box: (piece_symbol) ->
    @reset_hexes(@get_hexes(piece_symbol))
    @get_box_metrics()


    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(app, app.grid)
    pm_img = document.getElementById("piece-mask")
    context = pm_img.getContext('2d')
    context.globalCompositeOperation = 'source-atop'
    context.drawImage(@photo_clip,0,0)
    context.globalCompositeOperation = 'source-over'
