add pixel method