I'd use "image/jpeg" here already instead of blob.type.