continuing work on image parsing
for some reason I keep getting an out of bounds exception