first implementation of ImageResize view helper