imagepane selection rectangle + level set pdf