For scaling of images, you might find my answer in this
thread useful. I'm sure I've read a thread about keeping captions/images on same page, but I can't find it. Short version, either in css, define
Code:
p.caption {page-break-before:never;}
, though you're not guaranteed that this will always be respected,
or use SVG. Trickier, but you're guaranteed to always have the image and caption on the same page. You also get full control over image scaling.