Fix bug where images would not be added due to extension .pdf all images are now exported to png