The image resizing on-the-fly with caching