def create_index_img(size=32): img = QImage(size, size, QImage.Format_ARGB32) # fill the image with empty color img.fill(0) return img