Fixed preview canvas clear