refactored to imagemanips class
more test cases in imagemanips
starting the json method