Fixed bug

There was a bug where the raster data reading function didn't know when
it was reading a clear. Messing up certain images that had weird indexes
for clear/EOI