Fixing an issue with image extensions
Fix to pdf images