Resize Image when uploaded in gallery item

Upload image to main server if any external image url's.
Resize uploaded images to width 700px and appropriate height if it's
width is grater than 700px.