Adressing issue #16, #17, #19

- Global variables changed into local variables and input parameters to
functions.
- Images resized to enhance resolution
- other method to redefine crop-area, NaN avoidance
- error message in warp_iteration introduced