Fast lightweight universal image decoder