I have done this, it can work with some kids, still, its too much work.
At this age, I think it is more important to keep them motivated and find ways to use their creativity than to get them through the pains of debugging and learning too many technical concepts, even simple details like learning about image formats, how to reference them, case-sensitiveness are just obstacles against meeting their goals.
I feel like we don't give kids enough credit. Game devs who started in the 70s and 80s learned BASIC and all the technicalities of their platforms back then, some eventually moving to Pascal, C, or Assembly. The platforms had fewer variables back then (code running in real mode, your machine was identical to others of the same platform), but kids were still able to learn the minutiae of the Apple II or Commodore 64.
At this age, I think it is more important to keep them motivated and find ways to use their creativity than to get them through the pains of debugging and learning too many technical concepts, even simple details like learning about image formats, how to reference them, case-sensitiveness are just obstacles against meeting their goals.