get nearest size available
figures with layout, so we can put captions in later
fix figure/img layout issues