def convert_image_format(self, filename, format='BMP', allowAlpha=False, extension='.bmp'):
"""Convert the image to another format, and store it in a local place"""
+ if not os.path.exists(filename):
+ return filename, False
import PIL, PIL.Image
self.remove_old_image_cache()