get correct src filename extension