Size and shape dependence of thermal spin transitions in nanoislands.