* fix: image resizer error * refactor: created common function to get the active image element * fix: build errors