Changed to d_ptr plugin interface. Fixed some resize issues.