[Bugfix:TAGrading] Notebook image width scaling (#6386)
[Bugfix:TAGrading] Notebook image width scaling (#6386)

* Resize images for openFrame (file viewer) to fit parent width

* Fix error with PDFs in FireFox

* Fix image resizing weirdness in FireFox
Submitty/Submitty,RCOS-Grading-Server/HWserver,RCOS-Grading-Server/HWserver,Submitty/Submitty,Submitty/Submitty,Submitty/Submitty,RCOS-Grading-Server/HWserver,RCOS-Grading-Server/HWserver,RCOS-Grading-Server/HWserver,RCOS-Grading-Server/HWserver,Submitty/Submitty,RCOS-Grading-Server/HWserver,Submitty/Submitty,Submitty/Submitty,RCOS-Grading-Server/HWserver,Submitty/Submitty,RCOS-Grading-Server/HWserver,Submitty/Submitty