click to mark first corner (tx,ty)