A basic JPEG to TIFF decoder