Shape change as entropic phase transition: A study using Jarzynski relation#