def update_used_images
      ActionController::Base.new.expire_fragment(self)
      image_ids = self.used_images
      if !image_ids.nil?
        Picture.where(id: image_ids).each do |picture|
          picture.update_attributes(article_id: self.id)
        end
      end
    end
def update_used_images
      ActionController::Base.new.expire_fragment(self)
      image_ids = self.used_images
      if !image_ids.nil?
        Picture.where(id: image_ids).each do |picture|
          picture.update_attributes(article_id: self.id)
        end
      end
    end
Finds images used in an articles content and associates each
 image to the blog article