Miguel Grinberg's flasky app from his Flask book that implements user image uploads instead of gravatar.