Fix render argument didn't work bug.
Limit available image formats.
Fix "IOError: cannot write mode RGBA as XBM."
Change mime type of bmp image to "image/bmp"