Fixing pdf image prob issue