Most efficient way to convert images to drawable assets

Actually, you can't.

How to fix it

Because @dardoro used the "pixels" variable when defining the "text" variable, they couldn't use the expanded version of the "let" block.