Implemented PIL support for image writing, no longer rely on ffmpeg.