A very simple jpeg decoder for learning