Generate thumbnail when picture is taken.

Saves a round-trip to server after uploading.