fixed bug191 better image quality for math in pdf