This Create Task template was downloaded from the CollegeBoard's forums. It says: 2C Capture and paste an image or images of your program code segment that implements the most complex algorithm you wrote. (marked with a color border below)
However, this is also stated on the College Board's website:
C. Program Submission
For both the collaborative and individual programs:
● submit program source code in a single PDF document of copy-and-pasted code, either as text or as screenshot(s).
So it sounds like either is fine. No matter what the students are submitting a .pdf so as long as the code can be read easily, I don't think it matters.