Changed a few contructers and added shared tests for image interface