It's possible for it to request RGB at an out of bounds coordinate because coords[0] or coords[1] can be 1.0 while the max index for the x coordinate is image.getWidth() - 1 and not image.getWidth(). So this can probably crash even without my world map mod.