title: Accessing Sitecore Properties for an Image field in user control's Code-behind
body: <p>I want to <strong>access</strong> (and then <strong>modify)</strong> the <strong>properties for the image field</strong>(s) in <strong>Sitecore</strong> (esp. interested in 'Dimensions' and 'Keep Ratio' check box) via a <strong>code-behind file</strong> (blah.ascx.cs). 
  [This to ensure that all the images have a consistent size, when displayed in the sublayouts (irrespective of the original size)]</p>
  
  <p>I know these properties can be added manually, but for the case where content authors "forget" to add the dimensions for image(s), I don't want my sublayouts to screw up. Hence, I need a check for that.</p>
  
  <p><strong>Is there a way to access and then modify these properties via code?</strong></p>
  
  <p>Here is an image that shows exactly what I want to access and modify via code:</p>
  
  <p><img src="https://i.stack.imgur.com/jPRI1.png" alt="enter image description here"></p>