fixing image sizes in pdf