old_contents: import json
  import random
  from templates.text import TextTemplate
  from templates.quick_replies import add_quick_reply
  
  dice_sides = {
  	1: u'\u2680',
  	2: u'\u2681',
  	3: u'\u2682',
  	4: u'\u2683',
  	5: u'\u2684',
  	6: u'\u2685'
  }
  
  def process(input, entities=None):
      roll = TextTemplate(dice_sides[random.randint(1, 6)]).get_message()
      postback = {
          'intent': 'dice',
          'entities': None
      }
      message = add_quick_reply(roll, 'Roll again!', json.dumps(postback))
      output = {
          'input': input,
          'output': message,
          'success': True
      }
      return output
  
new_contents: import json
  import random
  from templates.attachment import AttachmentTemplate
  from templates.quick_replies import add_quick_reply
  
  dice_sides = {1: 'http://fa2png.io/media/icons/foundation-icon-fonts/2015-02-16/die-one/256/0/e74c3c_none.png',
                2: 'http://fa2png.io/media/icons/foundation-icon-fonts/2015-02-16/die-two/256/0/e74c3c_none.png',
                3: 'http://fa2png.io/media/icons/foundation-icon-fonts/2015-02-16/die-three/256/0/e74c3c_none.png',
                4: 'http://fa2png.io/media/icons/foundation-icon-fonts/2015-02-16/die-four/256/0/e74c3c_none.png',
                5: 'http://fa2png.io/media/icons/foundation-icon-fonts/2015-02-16/die-five/256/0/e74c3c_none.png',
                6: 'http://fa2png.io/media/icons/foundation-icon-fonts/2015-02-16/die-six/256/0/e74c3c_none.png'}
  
  def process(input, entities=None):
      roll = AttachmentTemplate(dice_sides[random.randint(1, 6)], type='image').get_message()
      postback = {
          'intent': 'dice',
          'entities': None
      }
      message = add_quick_reply(roll, 'Roll again!', json.dumps(postback))
      output = {
          'input': input,
          'output': message,
          'success': True
      }
      return output
  
subject: Add images (#217)