Optical properties of an axially symmetric black hole in the Rastall gravity