several fixes and added image resizer