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

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

        setScalingDisabled()

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

      positionChange = -> 
