                                 className: 'btn btn-default',
                                 type: "button",
                                 ref: 'imagesDisplay',
-                                onClick: @displayImages,
+                                onClick: @props.displayImages,
                                 t 'message images display'
                 iframe
                     'data-message-id': @props.message.get 'id'

        #   and resize the frame
        if @refs.content
            frame = @refs.content.getDOMNode()
            loadContent = (e) =>
                step = 0
                doc = frame.contentDocument or frame.contentWindow?.document
                if doc?
                    doc.documentElement.innerHTML = @props.html
                    updateHeight = (e) ->
                        e?.preventDefault()
                        e?.stopPropagation()
                        height = doc.body.getBoundingClientRect().height
                        frame.style.height = "#{height + 60}px"
                        step++

                        rich: prepared.rich
                        imagesWarning: imagesWarning
                        composing: @state.composing
                        displayImages: @displayImages
                        displayHTML: @displayHTML
                    div className: 'clearfix'
        else
            li
