Refact image service.
Image service support resize.