getImageId

fun Context.getImageId(resource: String): Int

Resolves the given into image string into resource identifier returns the id if found else 0