Use img instead of canvas to display output.