This is only WIP, but it at least updates the selected range correctly when the image precision changes.