moving pixel to space logic into the backend
remove some debug prints