wrap im_remosaic() as a class