tiny lib for fitting images to a fixed with container (by using resizing and partial crop)