First cut check-in towards open sourcing imagestats.