adds wrapper for pimage, more tests