Fixed array out of bounds in position_rgb.