Toy JPEG decoder