fixed canvas tag, removed index processing code