added file attach and now working on image resize