solved canvas flashing