fix rmi issue, add simple resizer - dramatically lower cpu usage