Add functions for fitting rectangles into other rectangles
Add tests
Merge branch 'feature/image-resizing' into develop