Add functions detect pnm/sixel image format
Do not use stbi loader if image format is pnm/sixel
Minor fix