reconfig mastimage_func