add two more parameters in .ini file. The code is the same as before

Signed-off-by: ezheng <ezheng@cs.unc.edu>
This version is fast. It defines macro HANDLE_BOUNDARY so the code can have two version: one which is faster but does not handle boundary of the image; the other is slower but handle boundary of the image.

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