add image resize option on config