Implements onerror for JpegStreams
Merge pull request #4969 from timvandermeij/image-loading

Implements onerror for JpegStreams