The first image is an example of how the pipe can corrode in the inside due to a improper plumbing installation/ incorrect pipe sizing. However, this image also provides you with a greater understand of which plumbing should be replaced if presented as the illustration below.
Citation: Toilet Flange. Digital image. N.p., n.d. Web. <http://terrylove.com/forums/index.php?attachments/img_20151026_235859914-jpg.31522/>.
Plumbing is a craft that works hand in hand with style and presentation. Although plumbing is known as a dirty trade/work, the finished product should always appear opposite of that. Below is an image presented on what your finish product should like, and how pipes should not be exposed.
Citation: Digital image. Shower Drain. N.p., n.d. Web. <https://s-media-cache-ak0.pinimg.com/originals/29/11/e5/2911e5677746255ebb021b8f62283166.jpg>.
Below is an illustration of a correct drain installation and what it should look like whether you are doing brand new construction or existing installations.
Citation: Digital image. N.p., n.d. Web. <https://s-media-cache-ak0.pinimg.com/736x/2c/0b/12/2c0b129692010c957d3b1a5300d033e7.jpg>.
A greater understanding of how the drain and a toilet work together in order to dispose of waste.
Citation: Digital image. N.p., n.d. Web. <http://www.contractorssolutions.com/images/Toilets_diagram.jpg>.