Automatic Optimization of Images (Size, Dimension)

I would think the best way is to put the image inside a block, and then make the image 100% width.

For responsive, then you just need to resize the block.

Would that work?