old_contents: from wagtail.wagtailcore.blocks import CharBlock
  from wagtail.wagtailcore.blocks import ChoiceBlock
  from wagtail.wagtailcore.blocks import StructBlock
  from wagtail.wagtailimages.blocks import ImageChooserBlock
  
  IMAGE_STYLE_CHOICES = [
      ('max-width:225px;max-height:145px', 'Small'),
      ('max_width:250px;max-height:250px', 'Medium'),
      ('max_width:250px;max-height:250px;padding-top:20px', 'Medium Pushed Down 20px'),
      ('height:auto', 'Shrink to Fit'),
  ]
  
  class COSPhotoStreamBlock(StructBlock):
  
      class Meta:
          template = 'common/blocks/flickr.html'
          icon = 'image'
          label = 'Photo Stream'
  
  class ImageBlock(StructBlock):
      main_image = ImageChooserBlock()
      style = ChoiceBlock(choices=IMAGE_STYLE_CHOICES,default="height:auto")
      url = CharBlock(max_length=250, required=False)
  
      class Meta:
          template = 'common/blocks/image_custom_block.html'
          icon = 'image'
          label = 'Image'
  
new_contents: from wagtail.wagtailcore.blocks import CharBlock
  from wagtail.wagtailcore.blocks import ChoiceBlock
  from wagtail.wagtailcore.blocks import StructBlock
  from wagtail.wagtailimages.blocks import ImageChooserBlock
  
  IMAGE_STYLE_CHOICES = [
      ('max-width:225px;max-height:145px', 'Small'),
      ('max-width:225px;max-height:145px;padding-top:20px', 'Small Pushed Down 20px'),
      ('max_width:250px;max-height:250px', 'Medium'),
      ('max_width:250px;max-height:250px;padding-top:20px', 'Medium Pushed Down 20px'),
      ('height:auto', 'Shrink to Fit'),
  ]
  
  class COSPhotoStreamBlock(StructBlock):
  
      class Meta:
          template = 'common/blocks/flickr.html'
          icon = 'image'
          label = 'Photo Stream'
  
  class ImageBlock(StructBlock):
      main_image = ImageChooserBlock()
      style = ChoiceBlock(choices=IMAGE_STYLE_CHOICES,default="height:auto")
      url = CharBlock(max_length=250, required=False)
  
      class Meta:
          template = 'common/blocks/image_custom_block.html'
          icon = 'image'
          label = 'Image'
  
subject: Update images.py