Store image filename

how i can store image filename? i only need “01354” “32624” “10244”

example
wp-content/themes/zSimpleThemeB/images/01354.png
wp-content/themes/zSimpleThemeB/images/32624.png
wp-content/themes/zSimpleThemeB/images/10244.png

You can split the string