Fix sprite logging.

Fixes #862.
Add support for quiet compilation.

Fixes #862.