I think the difficulty here is passing a dynamic tag Get as an attribute to another dynamic tag Field, all inside an HTML attribute.
It might be solved by moving the template expression outside the HTML attribute, using a variable to pass the result.
<Set image_url><Field image_url size="{Get my_image_size}" /></Set>
<img src="{Get image_url}" />