         _init: ->
 
         _openDialog: ->
+            jQuery('.image_button').addClass('ui-state-active')
+
             # Update active Image
             jQuery(".#{@widgetName}-activeImage").attr "src", jQuery(".#{@widgetName}-imageThumbnailActive").first().attr "src"
 

            @options.dialog.dialog("open")

        _closeDialog: ->
            @options.dialog.dialog("close")


)(jQuery)

            id = "#{@options.uuid}-image"
            buttonset.append jQuery("<input id=\"#{id}\" type=\"checkbox\" /><label for=\"#{id}\" class=\"image_button\" >Image</label>").button()
            buttonset.children("label").unbind('mouseout')
            button = jQuery "##{id}", buttonset
            button.bind "change", (event) ->
                if widget.options.dialog.dialog "isOpen"
