Improved the quality of the Image resizer