converted images to indexed mode