fix processing of cover image in epub