Size-dependent magnetism of patterned MoTe2 monolayer