some work on cropping, fixed several bugs in Data.updateData(..) and friends...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>