Pixel art helpers by Kaito-Kid

Rebased and squashed #3981.