Fix for Place Image

- Fix compilation for OSX 10.8
- Fix Place Image bug where sometimes no image would be placed under certain circumstances (when the FormulatePro window would be much larger than the PDF document)