The dimensions of the image widget are defined in height
and width
attributes of the containing field node as mentioned in Large image preview of binary field in the form. When I choose the dimensions of the image fitting the available space, then on both sides margins/paddings are added as in Now screenshot above. This added margins/paddings disappearing when window gets smaller on resize. Yet I have no clue wherefrom these margins/paddings come and how to avoid them if possible.