add image process function