S3 returns bytes and StringIO() doesn't allow writing bytes. So we need
BytesIO(). eg: Saying instance.image_field.height would fail without
this change.