Use pixel object from parameter instead of context