Added Validate function to ShaderProgram.
Added size method to canvas.