Revert "Removed line dealing with PIL."

This reverts commit 09862e238385512d4ded587a68339755bc8bbd3d.
Revert "Included additional edits to improve readability."

This reverts commit 56fa6dc153618304d717b7bceadd320418346faa.