Correction bug photo generation PDF