     ///
     func imageAttachmentToNodes(_ attachment: ImageAttachment) -> [Node] {
         var attributes = [Attribute]()
-        if let attribute = imageSourceAttribute(attachment) {
+        if let attribute = imageSourceAttribute(from: attachment) {
             attributes.append(attribute)
         }
 
-        if let attribute = imageClassAttribute(attachment) {
+        if let attribute = imageClassAttribute(from: attachment) {
             attributes.append(attribute)
         }
 


    /// Extracts the src attribute from an ImageAttachment Instance.
    ///
    func imageSourceAttribute(_ attachment: ImageAttachment) -> StringAttribute? {
        guard let source = attachment.url?.absoluteString else {
            return nil
        }

                    break
                }

                if font.containsTraits(.traitBold) {
                    let representation = attributes[BoldFormatter.htmlRepresentationKey] as? HTMLElementRepresentation
                    let node = representation?.toNode() ?? ElementNode(type: .b)
                    
                    block(node)
                }

                if font.containsTraits(.traitItalic) {
                    let representation = attributes[ItalicFormatter.htmlRepresentationKey] as? HTMLElementRepresentation
                    let node = representation?.toNode() ?? ElementNode(type: .i)

                    block(node)
                }

