How to get property out of image object

because you have two array the second array is nested within the first

you must get the image url from the sizes array not from first array directly

$overlayImage = $tempLargeImage["sizes"]["thumbnail"];