Added support for S3 for pppictures