some error in new add pixel method probably