Fixed wrong og:image url when using S3 storage (#851)