Modified code to support rgb8 as the main encoding format.

Closes #2.