fixed image mode issue for saving student score PDFs