Fixed bug in position exceeding dataset shape in intensity label painter