removed saving of image as pdf