fix missing images by removing the tailing part of the image paths on building the epub