Fixed image to PDF issues