def sliceImage(image, divWidth, divHeight):
    """Divide the received image in multiple tiles"""
    w, h = image.size
    tiles = []
    for y in range(0, h - 1, h / divHeight):
        my = min(y + h / divHeight, h)
        for x in range(0, w - 1, w / divWidth):
            mx = min(x + w / divWidth, w)
            tiles.append(image.crop((x, y, mx, my)))
    return tiles
