I\'m trying to get a BufferedImage from raw samples, but I get exceptions about trying to read past the available data range which I just don\'t understand. What I\'m trying to