changed canvas style and coordinate extraction from gesture