Break out of the loop if the marker length exceeds the data view length.

Use 256 KiB by default to parse the image meta data, which can be
overriden by the new configuration option maxMetaDataSize.