Would make sense to move the urls to each conditional where we see if the datastream is set?

Such as the `$png_url` being moved to `if (isset($object['PNG']))`.