Changed how sprites are drawn

This closes #103.