Added render() method
Simple calculation of pixel size to make sure output is within bounds. Needs to be redone.