       moveStep: '=?ngpMoveStep'
       progress: '=?ngpProgress'
     link: (scope, element, attrs, ctrl, transcludeFn) ->
+      # initializing Canvas
+      ngPintura = new NGPCanvas()
+
       # slider value and conversion functions
       scope.slider =
         # current slider value

        setScalingDisabled()

      # changes image
      imageChange = -> 
        ngPintura.imageChange(scope.src, scope.showIndicator)

      positionChange = -> 

      # play
      @tween.play()

###*
# pintura container
# creates and shares paperjs scope with child directives
# creates canvas
###
module.directive 'ngPintura', ($window) ->
  directive = 
    transclude: true
    scope:
