resolveImageId

fun Context.resolveImageId(resource: String?): Int?

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