Replace false image data decoding in readContents with simple skipping.

This decoding was only used to advance the buffer, but we can achieve the same by just skipping image data blocks. This is much faster.