add range image, need a lot of changes