Context
Context. One image, many slots: a wide banner, a square card, a portrait thumbnail. The author should choose how it is cropped and the template should do the rest. The crop is an attached attribute (a select whose keys are the resize strategies), the resize is getResized() with that strategy, and the responsive part comes from the site's Generate picture tag setting plus offeredSizes, which offers several widths and densities without hand-written markup.