Dynamics of null particles and shadow for general rotating black hole