Improve pixel support and add basic testing