fixes for image margins, retrieving captions

- ruben
add captions, fix sizing

- ruben