     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()  + 'px')
                @wpaintElC.css('height', @imageEl.height() + 'px')
                annotation = @annotationEl.attr('src')
                imgData = @wpaintElC.wPaint
                    drawDown : => @drawDown()


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