A PNG image is to be used as the icon foreground, and the background should be completely transparent.
Using Android Studio > New Image Asset > Configure
Get a view of the imageButton
View v = findViewById(R.id.myImageBtn);
get the icon from the app for example Chrome
pkgnam="com.android.chrome";
Intent intent1 = ctx.getPackageManager().getLaunchIntentForPackage(pgknam);
Drawable myIcon = getPackageManager().getActivityIcon(intent1);
set the background icon the same as the foreground icon
v.setForeground(myIcon);
v.setBackground(myIcon);