title: keep/change uploaded image size
body: <p>I want to put uploaded images in such a way that if the image size is smaller than container div, it keeps its original size, but if the image size is larger than container div then it fits in the div and I have to provide width and height to the image else jquery.resizable will not work.
  Is there any possible way ?</p>