added clearrect on dimmer on finish to deal with improper opacity on mobile