i figured out what i want for the start.
i made a prototype but it is now lost because i deleted it before i realized that i accidentally created my zip file Empty.
the next part i need to know is
"¿how could i keep drawing the pixel line when moving the mouse with the button held down?",
because for me, this code should theoretically already do it, but in practice it doesn't.
---
but the principle is already clear:
i need to draw on a pixel grid so that i could store and render the images much more efficiently
because the use-case of the finished program might need Many images to be displayed on-screen at once,
and that's On A Phone where that finished program might actually Need lower-fidelity rendering to save battery.
the GDPaint approach (that @TwistedTwigleg and @cybereality suggested) of placing down Vector-based "Brush Objects" works well when drawing One image,
but if you need to draw a few dozen images side-by-side this could become a performance disaster, especially on phones.