Handling errors when parsing jpeg image segments.