resize picture
fix caption rendering