made resizer work better in both regular and embedded modes