@@ -215,13 +215,13 @@ class Generator(object):
Returns:
Identicon image in PNG format, returned as a byte list.
"""
# Set-up a new image object, setting the background to provided value.
image = Image.new("RGB", (width + padding[2] + padding[3], height + padding[0] + padding[1]), background)
image = Image.new("RGBA", (width + padding[2] + padding[3], height + padding[0] + padding[1]), background)
# Set-up a draw image (for drawing the blocks).
draw = ImageDraw.Draw(image)
# Calculate the block widht and height.
block_width = width // self.columns