change service and add image resize structure