A React component for wrangling image loading