Import Cover from JPG OR PNG file

Did you know that the "Import covers" action allows wildcards?
So you could enter as
format string: %_filename%.*
to cater for jpg and png