Set up pixel class