Added documentation for setFromPixels