change interface to use image path.