small changes

Signed-off-by: ezheng <ezheng@cs.unc.edu>
updated version, it works great. It handles out-of-image projection

Signed-off-by: ezheng <ezheng@cs.unc.edu>