no longer use stbi_load to avoid confliction of NVTT
use case ... when instead of if/elsif/else nest in Thorfile