added s3 support to add pictures to events.