updated pictures controller for s3