[js] Adding some logic to set image height width on initial pageload to layout page correctly from cold cache.
- Removing the width/height when the user starts resizing to let the max-width:100%; resize things smoothly