render binary format using pillow