add test for big image
clean test
fix palletesize with Py_ssize_t