The first part is already answered in the linked question, where there is the code how to do this. To answer the second part of the question, you can access the original image in the node object:
{{ file_url(node.field_image.entity.uri.value) }}
One remark about content
:
In a node template the image field in content
is not ready to be rendered. The field contains the configuration how it should be displayed and the field object which contains all raw data. Later this will be put together in the field, image-formatter and image templates. That is the reason you don't find the url you are looking for in content
at this point.
In the node template you can use the fields on the top level of the content array, for example display the image field
{{ content.field_image }}
as configured in the view mode.
ItEdit:
There is not advisable to dig deeper into content in a node template and kint() is not much help for this. It's better to usenew filter in the templates that come latermodule Twig Tweak. Now you can generate the image style url in twig directly from an uri or url of the original image:
{{ node.field_image.entity.uri.value | image_style('thumbnail') }}