'Get an image from the icon'

def getimage(self, size, bpp=False):

    for (i, h) in enumerate(self.entry):
        if ((size == h['dim']) and ((bpp is False) or (bpp == h['color_depth']))):
            return self.frame(i)
    return self.frame(0)
