Types/OpenPackage/get_ImageFileList.ps1

<#
.SYNOPSIS
    Gets package image files
.DESCRIPTION
    Gets the list of image files within a package.
#>

@(foreach ($part in $this.GetParts()) {
    if ($part.ContentType -match 'image/' -or 
        $part.Uri -match '\.(?>a?png|jpe?g|gif|tiff?|svg|ico|bmp|exr)$'
    ) {
        $part.Uri
    }
}) -as [string[]]