Implements onerror for JpegStreams