Reverted smallpt source code