Pattern formation of an epidemic model with cross diffusion