Previously only a QOI image decoder was available on the system. This commit adds an encoder as well. For now it only handles images with 4 channels (RGBA).