Clear rect before inserting image