imwri: fix buffer overflow, add grayscale output
imwri: grayscale write support
Add another plugin to the list