added methods using the region class, get, set and crop
changed getData to return const array