format resizer code a bit and remove unnecessary section