Image and pdf fixes etc.