Properly handling images in the epub file