changed figure format to pdf