 
     backgroundImageChanged: ->
         if @canvasSupported
-            imageSrc = @imageEl.attr('src')
+            imageSrc     = @imageEl.attr('src')
             imageIsEmpty = ! _.isNull(imageSrc.match(/spacer.gif$/))
-            if (@_imgIsEmpty(@imageEl))
+            if (imageIsEmpty)
                 @wpaintElA.addClass('xforms-hidden')
                 if not _.isNull(@wpaintElC)
                     @wpaintElC.detach()

    blur: ->
        @_sendAnnotationToServer()

    _imgIsEmpty: (imgEl) ->
        imgSrc = imgEl.attr('src')
        ! _.isNull(imgSrc.match(/spacer.gif$/))

    # Send the image data from wPaint to the server, which will put it in <annotation>
    _sendAnnotationToServer: ->
        annotationImgData = @wpaintElC.wPaint('image')

                @wpaintElC = $('<div class="fr-wpaint-container-c" tabindex="-1"/>')
                @wpaintElB.append(@wpaintElC)
                @wpaintElC.on('focusout', => @blur())
                @wpaintElC.css('width',  @imageEl.width() )
                @wpaintElC.css('height', @imageEl.height())
                annotation = @annotationEl.attr('src')
                imgData = @wpaintElC.wPaint
                    drawDown : => @drawDown()
