Changed pixel id type to int instead of uint