Procedural graphics are allowed. So any drawing functions you have are totally viable.
is it also allowed to manipulate the loaded images (palette swapping, changing pixels, merging parts of tiles, rotating mirroring)
Yes all of that is allowed.