Added imagecast module and small modification to resample module.