Let your users fit an arbitrary image into a fixed size element