+
+class ImageCover(WLCover):
+ format = 'JPEG'
+ def __init__(self, *args, **kwargs):
+ super(ImageCover, self).__init__(*args, **kwargs)
+ self.im = Image.open(self.background_img)
+ self.width, self.height = self.im.size
+
+ def image(self):
+ return self.im