code for resizing added...still some issues...can't revert back resized image...need to remeber path of file opened initially