Responsive image resizer/loader - resizes images to fit the desired display dimensions.