Reinforced JPEG decoding to avoid false positives
Added missing_previous_data flag in segments.
Accept padding for BMP files.