Image width,height from a file upload via filepicker field choose by file field

I try to get image width & height from a file upload via filepicker field choose byfile field, before using these fields , I use pagemediaselect and get width & height :

{% set image_width  = page.media[el_background_image].width %}
{% set image_height = page.media[el_background_image].height %}

and now the array is like that with filepicker and file ,

array:1 [
  "user/themes/mytheme/images/pattern.jpg" => array:4 [
    "name" => "pattern.jpg"
    "type" => "image/jpeg"
    "size" => 3182
    "path" => "user/themes/mytheme/images/pattern.jpg"
  ]
]

So it seems we can’t have image width and height. Maybe a workaround is possible

Thanks for tips.