allowed setPixels and wrap to take vector arguments for improved consistency. old methods maintained for compatibility